cmake_minimum_required(VERSION 3.10)

# set the project name
project(Tutorial)

# self define
# specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)


include_directories(Tutorial
    inc/
    api/
)

# 编译多个源文件
AUX_SOURCE_DIRECTORY(src DIR_SRC)
AUX_SOURCE_DIRECTORY(timer/utils DIR_SRC)


# 加编译选项即可
# SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-pthread")
# target_link_libraries(Tutorial
#     phread
# )


# add the executable
# 直接编译一个文件
# add_executable(Tutorial src/tutorial.c)
add_executable(Tutorial ${DIR_SRC})

message("build over!")
